#ifndef __GPS_DFM_UTIL_INCLUDE__
#define __GPS_DFM_UTIL_INCLUDE__
#include <QString>
#include <QtCore/QPointF>

enum GPSLocationTextType {
	GPS_LOC_TEXT_DFM = 0,
	GPS_LOC_TEXT_D,
	GPS_LOC_TEXT_DF


};


typedef struct GPS_DFM {
	double degree;
	double minute;
	double second;
}GPS_DFM_t;

typedef struct GPS_DF {
	double degree;
	double minute;
}GPS_DF_t;


GPS_DFM_t	D2DFM(double degree);
GPS_DF_t	D2DF(double degree);

double DFM2D(GPS_DFM_t value);
double DF2D(GPS_DF_t value);

QString LngLat2String(QPointF value , GPSLocationTextType type);


QString LOC2Str(double d ,int type );


#endif